# added by yinchao, Sat June 22 15:50	2024

fhand = open('mbox.txt', 'r')

counter = {}
for line in fhand:
    if not line.startswith('From '):
        continue
    
    words = line.split()
    week_day = words[2]
    counter[week_day] = counter.get(week_day, 0) + 1

print(counter)
